import request from '@/utils/request'

const baseUrl = window.baseUrl

export function getPage(params) {
  return request({
    url: baseUrl + '${.TableName | formatSmallCamel}/getPage',
    method: 'get',
    params
  })
}

export function get(params) {
  return request({
    url: baseUrl + '${.TableName | formatSmallCamel}/get',
    method: 'get',
    params
  })
}

export function save(params) {
  return request.post(baseUrl + '${.TableName | formatSmallCamel}/save', params)
}

export function update(params) {
  return request.post(baseUrl + '${.TableName | formatSmallCamel}/edit', params)
}

export function del(params) {
  return request.post(baseUrl + '${.TableName | formatSmallCamel}/delete', params)
}
